package wowrl.data;

import wowrl.engine.WOWRL_Engine;

public class ItemFactory {
	private WOWRL_Engine engine;

	//Constructor
	public ItemFactory(WOWRL_Engine engine){
		this.engine = engine;
	}
	
	//Specific production
	public Item createApple(){
		return new Apple(engine);
	}
	
	private class Apple extends Item {
		private static final int setDisplayTileNumber = 644;
		private static final String setName = "apple";
		
		public Apple(WOWRL_Engine engine) {
			super(engine, setDisplayTileNumber,setName);
			// TODO Auto-generated constructor stub
		}
		
		public void moveOn()
		{
			engine.addMessage("You picked up an " + name + "!");
		}
		
		public void use()
		{			
			engine.addMessage("That " + name + " sure was delicious!");
		}		
	}
}
